//package com.xy.annotaion.handler.shiro.config;
//
//import com.xy.annotaion.handler.shiro.realm.TestDatabaseRealm;
//import org.apache.shiro.mgt.SessionsSecurityManager;
//import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
//import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
//import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
//import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
///**
// * @author Dell
// */
//@Configuration
//public class TestShiroConfig {
//
//    @Bean
//    @ConditionalOnMissingBean
//    public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() {
//        DefaultAdvisorAutoProxyCreator creator = new DefaultAdvisorAutoProxyCreator();
//        creator.setProxyTargetClass(true);
//        return creator;
//    }
//
//
//    @Bean
//    public TestDatabaseRealm testDatabaseRealm() {
//        return new TestDatabaseRealm();
//    }
//
//    @Bean
//    public ShiroFilterChainDefinition shiroFilterChainDefinition() {
//        ShiroFilterChainDefinition shiroFilterChainDefinition = new DefaultShiroFilterChainDefinition();
//
//
//        return shiroFilterChainDefinition;
//    }
//
//    @Bean
//    public SessionsSecurityManager securityManager() {
//        DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
//        securityManager.setRealm(testDatabaseRealm());
//        return securityManager;
//    }
//
//}
